#include<iostream>
#include<cmath>
using namespace std;
int main(){
    double a,n;
    cin>>a>>n;
    cout<<(long long)pow(a,n);
}